Fixed issue #2772