Fixes the NaN results when weighted prices were used