fix concurrent issue.