fixed messageEngine concurrency issue.