Fix table parse and tag_class bug