Fixed tagkey copy bug: Insert the new copied tagkey into the hash, not the old one that is going to be deleted