Fix bug with last migrate