fix conditions in list items