fix wsum*2 bug in weightedcov()