Fixed serious bug in inserArch