Fix max stack error.
Merge pull request #40 from vladikoff/master

Fix max stack error.