fixing small bug in sidebar