Fixed bugs about sidebar