fix error migrate