Remove debug message.
Fix typo and remove extra code.