solve the DualScan mode bug