try to fix stack overflow error on Travis CI build