From wikibooks: https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing

"The command \label must appear after (or inside) \caption. Otherwise, it will pick up the current section or list number instead of what you intended."

Fixed incorrect reference in text using this info.