Merge some conditions