fix migration error