fix version being reported incorrectly on detect