Fixed bug in isSyncGateway