Corrected API version checking.