Fixed #2870.