Fixed some killer mistakes in the fitness calculation.