fix archive substring call