Fixed bug in demo.sh