Fixed #2798.