fixed scanner issue