fix demo callback