fixed a minor bug in sidebar