fix bug when make demo