Fix query tool to get correct bounds for enclosing ways