Why are conditions duplicating each time I edit them?