Mecanim isnt looping animations?

I have a animation controller setup so that if speed > 0.1, the run animations runs, if speed < 0.1, it transitions to idle. My problem is is that when Speed = 1, it runs the run animation once, and same for idle when speed is set to 0. What am i doing wrong.

Toggle the Loop Time variable in the Import Settings for the Animation. That usually makes it loop properly.