fix permissions name in templates