Fixed bug in generated code example