Fixed the bug were the set_rpf() always returned true.

Signed-off-by: Alexandre-Silva <aalexandre.grande@hotmail.com>