Fix invalid previous fix for percentile edge case