FIX: error calculating ideal stock for materials issue 69983736