Fixed bug in way total anim frames are calculated