Correct a mistake in scan

Signed-off-by: Axel Davy <axel.davy@ens.fr>