Fixed bugs in MPLtolols and fileproc