fix for issue #44