Fix debug print in the beginning of output.