fixed wrong naming of perms-var in templates