Pain doggie style

Mat
My boyfriend loves having sex doggie style but it usually hurts me. I think it has to do with him hitting my cervix by mistake. I try to shift myself to make the pain go away but sometimes it comes back. Does anyone have any recommendations to make it hurt less? Maybe a better position?