Fix introduced bug on set_token_rate.