Fix demo code