fix issue with composites not being flipped properly