fix err reference issue when rate got from cache