fixes some orientation issue