fix run right animation; fix animation loop code