Fixed #2917.