fixes issue #4