fixed problems with last commit for bPerms2 update