Fixed #2990.