BUG: refix quantiles bug