Fixed #3152.