Fixed artisan:optimize crash