Undefined variable bug in SyncUpstreamRepository