fix for github issue #182