Fixed a bad bug in the example code.