fixing laravel bug