I notice some sprites are reused multiple frames in your examples, it probably has to do with that. I'll look into it !
EDIT : yeah got it the frame index calculation was clunky and based on properties. So if two frames had the exact same properties, it would take the first frame. In your first...