When debugging the data is not updated after running the script. - C#