Fix sync bug when Android sync is disabled