fixes issue #1894