fix #7 (undefined method 'synchronize' for nil:NilClass)
Merge pull request #8 from sblond/master

fix #7 (undefined method 'synchronize' for nil:NilClass)