Fix setting user barcodes

Not tested, but probably works