typo
correct perm checks. fixes #215