Fix migrate