fix inversed percentile