fix deployment bugs for demonstrate