fixing error message editing problem