Fixed scripting of tables.