fix the bugs.

remove the set loop mode.