Fixed issue #2574 about reverse class iterator