Bug solved but generated another