fix demo bugs in io.html