fix problem with update sidebar