Errors getting the number of offspring. Too many connections