Bug fix. App doesn't crash when rotating.