Fix another bug about sync