fix bugs in visualize many demos