fixed problem where the tabel only has one column