Proper handling of duplicate conditions