The judge wasn't the only one who was shocked