Fixed #2797.