remove incompatible flags