fix bug and build demo