Fix DB upgrade error.