Fixed an error when caling a Symfony console