Fixed #3087.