fix for issue #195 regarding not being able to remove permissions