fixed migrate.php