Fixed #3050.