bugfixes in examples