need to clear the map for every window