Fix sync bug
Merge pull request #12 from icook/pull3

Catch an edge case