Fix rotations in Firefox