fix examples so they run
Merge branch 'bug/fix-examples'