Fixed version checking.