Fixed #2272.