Fixed orientation change bug.