fixed a bug in example