fix crash on demo page
Merge pull request #49 from pickle27/demo_fix

fix crash on demo page