ScanResultCustom marshal bugfix