fixed the Scanner issue