fix for issue #66