Fixed getHops now it  searches all hops and returns the one with the right ID