Few fixes in examples.
Will not crash when tree is not found