fix to work on Symfony 2.4