[CoreBundle] Fixed discound in twig function