fix rare lock out of inventory bug
trying to improve NPC fleeing