fix for issue 46

fix for issue #46