Some fixes for rbl.lua