Billing and shipping address in sales invoice

i have a problem that when i create a new sales invoice for a customer it should be only the addresses of him like the other doctypes (Sales order, delivery note … )
i dont have this problem for the others doctype but only in the sales invoice i have all the addreses off all the customers not only for this customer.

I have checked in my local erpnext system, the addresses are fetched only for the selected customer in Sales Invoice.

in my ERP it isnt