trying to fix a sidebar bug