the problem can be caused by misplacement of the \label command; please make sure that the \label command is placed after the corresponding \caption command in the figure and table environments.
If the problem persists, please post a minimal working example showing the undesired behaviour.
Thanks for you answer. But as a matter of fact. The placement of the \label command seems not to change anything. Even if I put it after the \caption command, the problem stays.
Then, please do as I suggested before and post a minimal working example (MWE); otherwise we cannot provide effective help (instructions on how to build such a MWE can be found following the link I provided in my previous reply).