Correct a function to be enable debugging
Feedback from @narusemotoki
Merge pull request #73 from toshipon/master

Correct a function to be enable debugging