Correct output error file