Fixes issues with the sidebar