I was charged in error with U.S. withholding tax when in fact, I had Capital loss in selling U.S. listed partnership stocks. Whom/where to get refund?

I am a Canadian resident. I believe capital loss should not be charged
with U.S. withholding tax.