fix potential floating point error when animations have no frames