fix rate bug