fixed grant perms array issue