fixed version checking.