fixed sidebar bug