Fixed #2986.