fixed missing table_name problem