fix debug sync