fixed tiny variable issue in examples