fix for issue #189