bugfix #247