Fixed crash causing sync issue.
Merge pull request #89 from Matchlighter/master

Fixed crash-causing sync issue