I got the same problem. After i get the error it brings me to another tab "tiles" at line 336 "Returns distance from given tile."