Fixed a concurrent modification exception on messageservice