fixed version checking