fix for symfony 2.5