Fixing lua function, attempting another fix for rtl_pop