Fixed orientation change problems.