Fixed #1061.