fixed a map bug when opening the same result multiple times