fix bug pgm2freeman (wrong filename)