I forgot to define ratemode variable

Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>