Cleanup of barcode