Fixed #2671.