Pain during sex

When my boyfriend cums in me I get pain under my ribs.... Any ideas? It's only when I lay on my stomach???