Fixed problem with animations at frame rates greater than 20 FPS