Fix debug message's bug.