Fixed regression with PrimiteWrappersSample