fix #247