fix demo client bug