fixed get max revision