Fixed page orientation change bug