fix minimum_version logic