fix sidebar bug