fix clear bug in scan barcode view