closestItemId $apply fix