Add warning for the case when an item in a list is invalid