fix #4120, close #4139