Fixed sync abort/resume bug