fix bug where if sim time > vis time or vice-versa, animation wraps around to 0,0,0