WIP: initial edition for fixing sampling
WIP: sampling is corrected when fixed mask is set