fix for issue #43