fixed problems when changin' orientation