fix trial type bug in animation plugin