Fixed bug with the debug output