fixed error of sidebar