fix bug in build empty table