Removed reference of old debug constant, fixed error typo