fixed debug printing in example