fix p cutoff check