Rootfinding fixed