fix endless loop on error
0.0.4
Automatically rewritten for npm.