Fixed #3048.