Fixes Sidebar issues when resizing