fix sidebar bug for no login