Adding check to ensure no overlap of A & B in C
Bug fix