 Rachel McAdams took a sailing class after learning that her  character was an expert in sailing. This helped the cast and crew,  because a few thunderstorms had occurred during the course of  filming as McAdams was able to help them sail to safety.