Fixed #3016.