Mocha mask help?

I got this problem, (obviously). I’ll track the background of the shot to get a solid track, then moved onto masking out an actor in said shot. I link the roto layer to the actor’s track mask. (sounds good right?) The problem is when I import the mocha mask into after effects I always end up with the same result, a sample shot is below. I was wondering if anyone could explain to me what I am doing wrong.

Thank you.