fixes issue #139