fix null pointer of table md.