#488 fixing small bugs in examples