add assert for debug sync case