fix bugs transition to Symfony 2.3