fix the wired shifting issue of sidebar