Fixed problem in gateway table when gateways go away when syncing rows