fix initial data bug