Fix in standard deviation rule to cast high the original value in addition to the squared value