Comment
Comment by zenoprax
This is my experience as well. I have spent many hours trying to eliminate this kind of contamination and the only solution I've found is to re-write from scratch every time. If the result isn't to your liking just reset its context and provide a more detailed prompt.