Leg cramp

So when me and my hubby are having sex I like to be on top and usually finish when I’m on top. The problem is right when we are are about to finish at the same time.. my left leg cramps and I don’t get to finish. Does anyone else have this problem?? It’s so annoying