fix issue #4980