fixed bugs in postProcess.pl