Fixed #1820.