Fixed sync bug for files that don't exist yet.