This is quite a common problem and is almost always caused by an idle speed that is too low.
Make sure your idle speed is set to at least 1450 rpm.
As you have an XTR, you will need to access the rev counter in the dash to set the idle. Read this thread:
http://www.xt660.com/showthread.php?t=11677