Fixed #2939.