Fix name mappings in dynamic slice logic