ChatGPT Messing Up Code For Projects

I am trying to create a website using ChatGPT to help me with writing the code, but it keeps messing up the code. I fixed most of it, but there is still a bug in it. There is the File Image with the text next to it saying “Header Image” even though I deleted the image, and I asked ChatGPT for help in removing that in my CSS code, and I have spent t around 1 - 2 hours trying to fix this bug. Is this happening for anyone else, is ChatGPT not helping with fixing their code bugs, or just not helping in general?