fixing sync
Merge pull request #188 from nikhan/sync_fix

fixing sync