bugfix issue #185