corrects qty to num in  example