Not a bug. Your companions just aren't in line of sight of the enemies. You can actually use this to your advantage.