Fixes for format error in debug messages.