Code will load and run once but not again

How did you solve this issue?