fix small error in sample code

Signed-off-by: Sam Kleinman <samk@10gen.com>