fix for issue #49

fix for issue #49