Fixed #1586.