fix datastore migration