Fix a bug when refeshing maker of a train with open popup.