fix some calculation rate bugs