fixed sidebar bugs