Fix check for sublist skip.