Fixed issue #2986