fix sidebar bug@EDX-319 (in progress)