Fix a typo and case in some debug messages