fix migrate error