max_id fixed