Fixed #2826.