small bug fix in new quantile calculation