Fixed bug in evolve