slightly improved element insertion when reporting agents stats