fix for bug with gateways-group deleting