Fixes to examples