fixed loading of scans and barcodes to stop freezing