BUG: forgot to exclude -1 values in percentiles