fix the bug that expression does not generate a table