Fix for getOherVertex method