The original script is correct, except that the electrodes are way too short; you should at least make them 3 periods, probably 4. And it wouldn't hurt to make the central region longer too, to include more perfect ribbon close to the electrodes, before the "impurity region".
The Atomic Manipulator somehow gets confused about the equivalent atoms; another good reason why this concept has been removed altogether in the new ATK/VNL (2010.xx). To check if the script is correct, visualize it in the Nanoscope instead; if you drag your initial script there, you will see that indeed it renders correctly (just too small, as noted above and also by zh).