fix for issue #7

fix for issue #7