I agree it doesn't make sense - but the mechanic works fine. IMG guard is set hostile to both Kusari/Gallia, thus Holman/Java attack Kusari/Gallia law enforcement. This is no mechanical bug, it's just an absurdity. However, it should be easily reproducible for you - just create a navy/police pilot from either Kusari or Gallia and approach either Java or Holman. If you encounter the same issue you can feel free to report this as a bug, but (yes you may call me stubborn) I won't do it.