gates not colormerging properly