Fixed #3145.