fix cnp bug