fix typing in multiinstancesample.