Fixed symfony2.3 compability