Fix hopcount always being 0
Fix nearhop