Fix bug in the demo