fixed demo segment fault when no download