fixed scanner error