Trying to fix iOS issues on orientation change.