Fixed #2972.