Fix routing recalculation