Celebrity sex scenes

So I've always wondered, when celebrities have hard make out scenes and "sex" scenes in movies, how to the guys not get hard? I'd figure they would get hard making out and the ladies being topless or whatever. Odd question I know. Lol.