Daphne, Fred, and Velma get their spirits sucked out of their bodies. When Shaggy frees them at 51 minutes in, Fred and Daphne return to each others bodies by mistake. There's some additional swapping that also involves Shaggy and Velma but it's too trivial to mention and the whole sequence, from start to finish, takes about five minutes.