fix quit sync bug