Does it happen every time you approach them, or was it a one-off? If latter, then that's most likely a known and rare bug that's caused by some very unfortunate timing (combat and npc dialog should never happen at the same time; however, combat *can* interrupt the player when they're using computers and such, so there's a bit of a distinction there), and sadly there's not much we can do about it at this point in time.