Fixed issue #3244