Fixed max generation bug