fix delete.php bug