fixed the map refresh/cache miss bug