Fix typos and debug log messages.