Fixing lua stack running full