Fixed sync script.