fix output bug in example