Fixed tab-switching bug when directly clicking a tab in Panorama view