Fixed compatibility with new version of symfony