Fix classcast in the case of a trigger experiment