Fixed #3009.