Stack space fix, math typo fix
Fix nested-table assignments