Dont add incorrect frame ranges to the final sum of frames