Fixed a small bug where only the first frame of animations are read