fix scan with delayed init value