With ChatGPT in particular, its a good practice to ride the inline edit button any time the results are unexpected/undesired. moving forward with a new prompt in the same thread will carry malformed contexts forward.