Fixed the double initializing of data file