bug patch for prematurely dealloc’d maps