Update the wrong variable used in rb20 function. Fixes #1762

Signed-off-by: Joni Chandra <joniliciously@gmail.com>