Validation says that I'm not writing data into second file. Do you know what is happening?