i09 is reporting that toy story 3 initially had a very different story.
From the site:
Jim Herzfeld wrote one draft of Circle 7’s Toy Story 3, a script that was later polished by Bob Hilgenberg and Rob Muir (who also wrote Circle 7’s Monsters Inc. sequel script). In this version, Buzz Lightyear starts malfunctioning, so his fellow toys ship him back to his manufacturer in Taiwan. But when they learn of a massive recall on Buzz Lightyear toys, Andy’s toys fear that Buzz will be destroyed, so they head to Taiwan to rescue him. Visual development artist Jim Martin provided concept art of some of the key moments. You can see a few piece below, and more on his website.