fix for input from file error reporting