fixed the bugs in updateEndpoints method when overlays/annotation model is present