Solving one bug created another one