Fixed #2897.