Fix sidebar bug