I'm having problems with cross-referencing tables and figures. There is a mismatch between the table number in the caption and the table number on the cross-reference in the text. I'm writing a
report and the number of the table in the caption appear as "Table X.Y" being X the chapter number and Y the table number. The cross-reference in the text varies depending if the table is on a chapter, section, subsection or subsubsection. For example, if I make a table in section 126.96.36.199, the table is cross-referenced as table 188.8.131.52 in the text, but on the caption says "Table 2.1". I would like the text to say "table 2.1" and not "table 184.108.40.206".
Any advice to solve this problem?