fix a race condition bug for address model.