Fixes an issue causing PEM to use the wrong sign on yaw and roll.