The problem is known as "bleeding" of the audio output back into the newly recorded tracks. Make sure you've disabled the audio output as a recording source using the soundcard's mixer or Windows Volume Control (Windows XP, Control Panel/Hardware and sound/Manage Audio Devices (Windows Vista/7) or System Preferences -> Sound (Mac OS X).