error in example fixed