Fixing bugs in the estimation of bandwidth from covs