fix sidebar show problem on safar