Fixed bug of data initializing