Fixed a small bug with NavigationPanel in come galleries.