fix issue when rate is larger than 1000