Fixed #1321.