fix for try/catch block in example