fixed a bug in the source code examples