Fix rate bug