fixed creating empty data file