fix crash in butterflies.js
Merge pull request #3425 from ZappoMan/butterflyCrash

fix crash in butterflies.js