Fixed debug output printed to stdout