fixes #247