fixed bug related to initial data