Fixed #2595.