cap p-value at 1.0