fixes issue #6