added fix for Symfony2.0