fix build and production demo