Corrected bug in example code.