Fixed #3174.