Fixed issue with debug printing