Fix replacing condition inside the list.