Fixed #1862.

I created modification to fix #1862.