fix inst.name (inst.name should be null-terminate string)