Correctly parse valid file