fixed bug in demo.html