Naw, I fixed it by adding in something but it doesn't work in all cases, I can only get it to work for NPCs that have summons.
Basically if a summon is ever in invis or is in invis sphere and you give them a command to attack nearest or do anything, they don't take any hostile actions what so ever. I'm assuming that this is some built in script to the default summon scripts.. I've tried looking for the cause but I haven't been able to find anything.