I'm having the same problem for both target modes. With addition, I can also target friendly NPCs in enemy mode. This happens when I'm not targeting anything and either press the enter key or the accept button on my gamepad to target. However, using the D-pad and arrow keys to target does not generate this problem.