bugfix for into outfile #582