Fix in manipulating cur_router_ids. Fix in clearing conn object