Sampler does not crash during testing, but does not give the desired result