Fix template for compatibility with Symfony 2.3