Fixing errors in examples