fixed issue with showOrientation