bug fixing for undefined column in the table.