@yisrael-wix thank you!
For now, the temporary solution is to reinitialize the timelines by calling the function again, but then, even though the animation worked, it seems that it worked because it was considered as a different timeline, and the previous timeline keeps logging these messages to the console.