fixes issue #5