fixes bug in pctile