Fixed #2308.