fix little bug in PPM validation