fixed extra output in sync