fixed a misnamed variable in find_by_barcode method in baseresource