map and distance bugs