fix 0-value reference in scan.cu