Fix and modofied the function of data migration from v0.14.x/v0.16.x to v0.16.8