fixed quantile error computation