fix for boolean permissions not working as they should have