fixed wrong fitness calculation