Fixes layout issues with sidebar