trying to fix sidebar bug