edit: the duplicated result was great! thanks for finding it for me. I couldn't get the right key-word to search for that but you find it for me after I could not find for 10 minutes. thanks verymuch it works well.
I'm having a weird issue where the referenced label and the actual number displaced on the document do not match. A picture probably help:
I cannot provide a minimal viable example as I am using some template file which probably is causing this issue, so if I start fresh this issue obviously do not manifest.
If anyone is interested here is a link to the template file, maybe there's something that can clue you to help with this issue?
https://gist.github.com/evanthebouncy/b5c3bb991222b1ca280b9bffdcc58e72
thanks in advance. I am very very perplexed why it happens.

latexenough times. Under the hood, one run is used to generate the labels, and another one to include the correct ones. If you use BibTeX or whatever for citations, it's even more complicated. That's the reasonlatexmk(and I suspect, alsoarara) exists. You could try these. – Oleg Lobachev Aug 11 '19 at 20:23\labelbefore the caption so it picks up the section number not the number from the caption. Please in future show code as text not as an image. – David Carlisle Aug 11 '19 at 20:28