fixes issue #140