migration errors fix v1