fixed 'tomar' input file generation errors