fix view perms