fixed orientation change method