Fix the bugs of the demo project.