fixes issue #159