Fixes the detection of MBS rotated in the XZ plane.