Correct calucaltion of coefficient of variation