fixed set perms error