fixed bug in delete.php