Wrong hole πŸ˜‚

Twice in about 2 weeks while me and my so have been having sex he's accidentally slipped out and aimed back at the wrong area without meaning to and omggg it hurts so much... is there anyway we can try prevent this from happening?