fix demo loop off-by-one