Fixed generation number not updating in max row.