fix for issue #42