Fixed bug in sidebar