Update w.lua

Distance fix.