Fix animationRestart in pingPong-mode