fixed scanner problem