fix github issue #291