Fix error in automatically setting sdk_version.