correct li numbers by using a temporary variable tmp tht function do for each one