fix for issue #167