Fixes range check error on non-one shot animations.