fix unassigned remote endpoint bug