fixed demo segment fault when no download
Merge pull request #89 from longbai/fixed_demo_crash

fixed demo segment fault when no download