Corrected an error in example code