fix ppm when only pgm exist
Merge pull request #60 from cdd990/master

fix ppm when only pgm exist