fixed bug that gave erros before redirect on delete_ad.php