Fixed #2799.