Fix missing perm check