resolve the concurrent issue, change the HashMap to ConcurrentHashMap.