Fixed issue where sidebar items would not close when open