fix for issue #157

fix for issue #157