Fixed sync problem