fix Scanner, and incremental chain
Fix bug of ScannerState, ScannerState keep old state if invalid blocks found