Fix typo.
Improve debug logging.