Fixed #2678.