minor misc. bug fixes in examples