AI Process Previous (Not Actual) Version of Code

Sometimes AI does not consider the updated files. This instance happened when AI suggested me to remove this block in the previous message and I did it, then AI suggest to do it again referring to the wrong piece of code.