Fixed a bug in 'xform "clonePerms"'