Correction in ScannerService and PositionEvaluator algorithms