I am running into an issue when I run my code it will reset to the beginning when I initialize adding a chart. It will run until it reaches the first line in the code below