Fixed error in last generation