correct a typo which break the ugly auto detect last version hack.