Fix issue with sidebar not resizing properly