fixed a null check issue with num_participants_needed