fixed StackOverflowError
Merge branch 'master' into stable