change the wrong message on warning function