fix bug in sidebar