fix for issue #162