Fixing a sync issue encountered when no keyPrefix is given