Fix error caused by data_alter when db out of date.