fix a bug in the pnset