Parses nested tables correctly