fix in demo.py