fixed migrate error