fix automatic rate bug