Fixed code error in example