Fixed #1846: bug in AnimationCache that causes interval to not work properly