Correction for Symfony2.3