Investors & landlords

I am in the exact same situation. RH reported me that I paid dividends and withheld foreign tax on the dividends I paid, but they didn't adjust the basis of my short sell. Do I supposed to go in the transaction and increase my basis? How do I report the foreign tax associated with the dividend I paid? Please help!