Scanner works, check doesnt