Read sampler from attributes.
fixes
others fixes