Gross Profit Report Error - Product bundle

I created a product bundle with more than 2 quantities of one item. The cost of goods sold is debiting correctly but the gross profit is showing wrong buying amount. It is just taking the total valuation rate instead of total quantity cost.

ERPNext Version: ERPNext: v13.9.2