fixed orientation change bug