Does not update Figure numbering in reference after adding a figure

Hi.
After adding a figure with caption before others, the numbering in the text references does not update accordingly.
Thanks