Fixed #2387.