Fixed #1069.