fixes issue #373

Fixes issue #373