fixed issue #5094