Correcting empty lines in intermediate results files