Corrected version checking