Fixes #19: wrong assertion
Add constraints in sampled objects