fix migrate not working after first file