Fixing bugs in a legacy system is a dangerous endeavor. Remember that any existing behavior may be accounted for in other parts of your system, or by external consumers of your application. By fixing a bug, you may be breaking functionality, albeit wrong, that someone else is depending on. So, a change to the execution results of code should be considered carefully before being done.