fixes issue #82