fix migrateLast