Fixed #3106.