Awkward question but how do you keep semen from flowing out after sex?

We’re ttc and i noticed that all of it comes out after sex. I tried to keep my legs up but it feels like all of it comes out! What has worked for you?