Update demo.py

fix bug