Remove sampler from the end.