Fix LIS recurrence