bug fix for debug mode
Merge pull request #1 from aisensiy/master

bug fix for debug mode