fix recursion error
Merge pull request #2 from smichr/issue-3428

fix recursion error: fix by smichr