Fix the bug in demo