Fixed #2635.