Fixed #3049.