Fix - BOM calculated wrong cost on update cost

`try` should be inside `for` block, for each bom