fix "Maximum call stack size exceeded"
Merge pull request #2 from f-kubotar/fix-deep-stack

fix "Maximum call stack size exceeded"