Fixed #2705.