#488 Fixed bug in examples