Fixed minor bug in the demo