Fix issue with sidebar closing on desktop