fix demo app bug