I tend to forget the bugs that I stumble across while writing code. Sometimes I'll fix a bug and a few minutes later come across a similar issue and not remember how I fixed the previous one.
I'll try documenting the bugs as I find them and hopefully fix them also.