Fixed rounding errors if there was an odd number of frames