minor memory error in example