Fixed #2819.