fix bug with handling rate options