Fixed bug with symfony 2.3