Fixed #2774.