Fix error in examples code snippet