fixed a mixup of insert with map