Fix a performance bug of SignScanEvent handling.