Added hack for unique Euler angles at singularity.