Correct input file errors