diff --git a/scripts/ai/merchant.lua b/scripts/ai/merchant.lua
index 9a253d1..86d7ded 100644
--- a/scripts/ai/merchant.lua
+++ b/scripts/ai/merchant.lua
@@ -7,7 +7,7 @@ function control()
 	if task == "hyperspace" then
 		ai.hyperspace() -- Try to go to hyperspace.
 	elseif task == "runaway" then
-		if ai.dist(is.pos(ai.targetid())) > 300 then
+		if ai.dist(ai.pos(ai.targetid())) > 300 then
 			ai.hyperspace()
 		end
 	elseif task == "none" then
diff --git a/src/pilot.c b/src/pilot.c
index be70cf2..d169491 100644
--- a/src/pilot.c
+++ b/src/pilot.c
@@ -440,7 +440,7 @@ int pilot_addOutfit(Pilot* pilot, Outfit* outfit, int quantity) {
 				q -= pilot->outfits[i].quantity - outfit->max;
 				pilot->outfits[i].quantity = outfit->max;
 			}
-			//pilot_calcStats(pilot);
+			pilot_calcStats(pilot);
 			return q;
 		}