fixed migrate problem