[BUG #1097] minor fix in code samples