patched Pratik's work on barcode position fixes, CRM-12967