fix for issue #146