Fixed a bug with animation offsets.