fix null reference when entity target is null
fix use of internal trait
fix script npc passenger/vehicle not found