fixed NPE when there's no perms installed