Fixed possible npe of tabel.