WIP: sampling is corrected when fixed mask is set