When Tobey Maguire signed on to portray Spider-Man in 2000, he was given a three-film contract.[47] While filming Seabiscuit in late 2002, Maguire suffered injuries to his back and Sony was faced with the possibility of recasting their lead.[2] Negotiations arose to replace Maguire with Jake Gyllenhaal, though Maguire recovered and was able to reprise his role, with a salary of $17 million.[12]