fixed debug printing