fallback to infinity if no valid version is found