fixed quit bug caused by hashMap destructor