This is a routing problem. How do you have your guitar connected to the computer? Somehow you are routing the playback to the input channel and so both are being recorded. Its either being done internally (so check the M-Audio control panel) or externally, perhaps through a mixer. How are you monitoring the playback, i.e., headphones or speakers?