fix bug at end of sync
Merge pull request #56 from Studyokee/editing

fix bug at end of sync