fix for issue #197