Fix attribute error in evolve.