fix duplacted perm issue