fix db migration error