fixed problem with the ScanIndexForward for the descending order