fix for issue #77