Fix the sidebar-resizing problems