fix for issue #118