diff --git a/python/fire.py b/python/fire.py
index 4f0e6a643d160b1fea4074e43ea9048628099415..00106adc79b01c868df38627eb12744481928cff 100755
--- a/python/fire.py
+++ b/python/fire.py
@@ -19,10 +19,10 @@ def init_fire():
 # Smooth image and cool (darken) pixels according to cool_map
 def avg_cooled(x, y, buf):
 	res = 0
-	res += buf[(y*client.WIDTH-1) + x-1]
-	res += buf[(y*client.WIDTH-1) + x+1]
-	res += buf[(y*client.WIDTH+1) + x-1]
-	res += buf[(y*client.WIDTH+1) + x+1]
+	res += buf[(y*client.WIDTH) + x-1]
+	res += buf[(y*client.WIDTH) + x+1]
+	res += buf[(y*client.WIDTH-1) + x]
+	res += buf[(y*client.WIDTH+1) + x]
 	res += buf[(y*client.WIDTH) + x]
 	res = int(res / 5.0 - cool_map[(y+ cool_offs)%client.HEIGHT*client.WIDTH + x])
 	if res < 0: