Fixes in network membership grant/revoke function.