Fixed #2637.