Fixed sync().