Fix sidebar layer issue