patch mistake in build_table_rows