Fixed updating focus index when calculating offsets.