fix for issue #82