Fixed #2707.