fixed the bug with the panorama not initializing correctly after it has been created on a previous view.