fix weighted variance