Fixing network error
Merge pull request #2 from jonasmonnier/fix-network-error

Fixing crash on network error