Printing debug message was crashing