Fix display bug in sidebar