Fixed orientate3 function #207