Fixed rounding error with frame index selection.