fixed orientation check