When there are duplicate rows per message, the tool is taking usage from the first row, while it should take it from the last row