Checking for EOFError fix