fixed issues with symfony 2.1 compatibility