Modify upper ye bounsd to make rootfinding work