I've found several times if I ask ChatGPT to produce code to do X, then respond to its response (whatever the respons is) with "That's wrong. Your code does not do X", it apologises, identifies something as a mistake, and then fixes it...