Fix sidebar jumping bug