fix demo compile error