Fixed auto ID bug when RefreshingElements.