Scanner problems solving