second fix for issue #189