fixed version finding bug