Fixes maximum stack size exception
Merge pull request #1 from abeisgreat/master

Fixes maximum stack size exception