fix demo errors