Fixes some orientation changes issue