Fixes layout issues with the sidebar