fixed on del alert function