BUG: percentile histogram was not working properly