bugfix scan.php