Fix migrate error.