Small freemarker fixes

The retrieval for the group name is now the same as in other templates.