Fixed a bug with the sidebar that affected the panels