Fix pb with tern demo.