fix broken code in example