fix unitsync compile