fixing unnecessary alert