fixed the sidebar bug