fix for demos
Merge pull request #373 from EricWittmann/master

fix for demos