rb: fix incorrect var