Fixed typo and debug output