fixing lookup table map to avoid references to deleted data